package com.cn.spring;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ImportResource;


@SpringBootApplication
@ImportResource(value = { "classpath:conf/application-content.xml","classpath:conf/springMVC.xml" })
public class Application {
	//如果Application extends SpringBootServletInitializer  就不用web.xml了
	//如果即有web.xml 还有继承，那么会执行两遍启动，数据源会报错
	/*
    protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
		return application.sources(Application.class);
	}
	public static void main(String[] args) {
		SpringApplication.run(Application.class, args);
	}
	*/
	public static void main(String[] args) {
		SpringApplication.run(Application.class, args);
	}
}
